import request from "../utils/request";

// 借车
export function borrowbike(pileNum) {
    let data = {
      pileNum:pileNum
  }
  return request({
    url: "/bicycles/borrow",
    method: "put",
    data:data
  });
}

// 借车
export function returnbike(bicycleNum,pileNum) {
  let data = {
    bicycleNum:bicycleNum,
    pileNum:pileNum
}
return request({
  url: "/bicycles/return",
  method: "put",
  data:data
});
}